Cristobal
05/06/2024, 4:43 PMMaria Jose Herrera
05/07/2024, 6:46 PMphillipsenn
05/08/2024, 5:14 PMfunction add1(arg) {
var result = arg
result += 1
return result
}
two = add1(1)
WriteOutput(two)
But changing it to this fixed it:
function add1(arg) {
var result=0
result = arg
result += 1
return result
}
two = add1(1)
WriteOutput(two)
phillipsenn
05/08/2024, 5:16 PMgsr
05/08/2024, 5:21 PMphillipsenn
05/08/2024, 6:25 PMwhile (NOT fileIsEOF(fileHandle)) {
Line = fileReadLine(fileHandle)
(snip)
}
Line 1 has the following 3 characters at its beginning, but not any of the other lines:
chr(239) chr(187) chr(191)
They don't show up in Notepad++ when I "Show All Characters".
Just wondering if anybody's seen something like this before.
I've already written the code to filter those 3 characters out, but just curious.gsr
05/08/2024, 10:18 PMSteve
05/09/2024, 4:53 AMvar checksum = createObject( "java", "java.util.zip.CRC32" ).init();
checksum.update( charsetDecode( input, "utf-8" ) );
var crc = javaCast("int",checksum.getValue());
crc I need inserted into a sql table:
...
crc: { value:"#crc#", cfsqltype:"integer" },
...
The problem is, checksum.getValue() returns a long int (signed) because java does not support unsigned int32. But my google expertise is failing me here and I cannot find a simple solution.PwrSrg
05/09/2024, 1:04 PMTEMann
05/09/2024, 3:36 PMGareth
05/09/2024, 10:49 PMGareth
05/09/2024, 10:53 PMgsr
05/10/2024, 2:39 PMDave Merrill
05/10/2024, 4:20 PMDave Merrill
05/11/2024, 11:18 AMgsr
05/12/2024, 3:23 AM<cfif NOT DirectoryExists(ExpandPath("../karatenbsearch"))>
<cfcollection action= "Create" collection="karatenbsearch" path= "#Request.ArchiveFileLocation#">
</cfif>
<cfindex collection="karatenbsearch" action="refresh" key="#Request.ArchiveFileLocation#" type="path" urlpath="#Request.ArchiveFileLocation#" extensions=".cfm,.html">
where the location is:
<cfset Request.ArchiveFileLocation = "C:\ColdFusion2023\cfusion\wwwroot\ting">
then i ran this and checked the administrator and the location it is doing iss:
karatenbsearch4821244211-May-2024 11:37:17 PMC:\ColdFusion2023\cfusion\jetty\multicore\collections\karatenbsearch\data\index
first it is not specifying the location i wanted it to be
2. it throws me on the error on the first line, even if it exists but on a different patch, but i am getting error, how can i fix it,
in these many years this is first time i am exploring cfsearchnick
05/13/2024, 3:19 PMTim
05/13/2024, 5:38 PMnolanerck
05/13/2024, 10:45 PMSlackbot
05/15/2024, 2:23 AMDave Merrill
05/15/2024, 12:45 PMDave Merrill
05/15/2024, 1:55 PMCristobal
05/15/2024, 2:57 PMgsr
05/16/2024, 1:57 AMsknowlton
05/16/2024, 1:18 PMPatrick
05/16/2024, 1:33 PMPatrick
05/16/2024, 2:19 PMddspringle
05/16/2024, 2:31 PMJim Priest
05/16/2024, 5:42 PM